package com.yb.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class HttpCode {

    public static final Integer CLIENT_ERROR_CODE=400;
    @Getter
    @AllArgsConstructor
    public enum Response{
        SUCCESS(200,"请求成功"),

        BAD_REQUEST(201,"参数错误"),

        UNAUTHORIZED(401,"沒有认证"),

        USER_NOT_FOUND(402,"用户不存在"),
        PASSWORD_ERROR(405,"密码不正确"),
        FORBIDDEN(403,"权限不足"),
        CHARGE_PRICE_EMPTY(205,"课程收费，价格不能为空，且必须大于0"),
        ERROR(500,"请求失败");

        private Integer code;
        private String msg;

    }
}
